<?php

namespace pmvc\controller;

use pmvc\Controller;

class BaseController 
	implements Controller {
	
	private $defaultViewName;
	
	/**
	 * Returns the default view name as configured
	 * @return string the view name
	 */
	public function getDefaultViewName() {
		return $this->defaultViewName;
	}
	
	/**
	 * Called to handle the request
	 * @return ModelAndView the ModelAndView
	 */
    public function handleRequest() {
        log_fatal("BaseController::handleRequest() wasn't overriden");
    }
	
	/**
	 * Called durring initialization of the controller
	 * to configure it.
	 */
    public function configure($conf) {
    	$this->defaultViewName	= $conf["defaultViewName"];
    }
}

 ?>